#include <stdio.h>
#include <syslog.h>
#include <unistd.h>
int main()
{
    //openlog("/var/log/streammgrd", LOG_USER, LOG_DEBUG);

    int t = 0;
    while(1) {
        syslog(LOG_DEBUG, "in function %d. t%d\n", __LINE__, t++);
        //printf("in function %d. t%d\n", __LINE__, t);
        usleep(1000000);
    }

    //closelog();

    return 0;
}
